package com.zpark.wxshop.service;

import com.zpark.wxshop.Vo.ProductVo;
import com.zpark.wxshop.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.beans.factory.annotation.Autowired;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author PJone
 * @since 2023-09-04
 */
public interface IProductService extends IService<Product> {

    //新增商品
    Product AddProduct(Product product) throws IOException;

    //修改商品信息
    Product UpdateProduct(Product product) throws IOException;

    //根据商品名称查询商品
    List<Product> FindByTitle(String title) throws IOException;

    //根据id查询
    Map<String, Object> FindById(Integer id) throws IOException;

    //商品查询
    List<ProductVo> FindProducts(String title, String shopName, Integer StartPrice, Integer EndPrice, Integer StartNum, Integer EndNum, Integer pageNum, Integer pageSize) throws IOException;
}
